<?php

class Category
{
  public function load($id)
  {
    foreach(Db::fetchRow("SELECT * FROM categories WHERE school_id = $id") as $key=>$value)
    {
      $this->$key = $value;
    }
    return $this;
  }
  
}
